/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.dto;

import java.io.Serializable;

/**
 *
 * @author TUNGTRUM
 */
public class CarOrderDetailDTO implements Serializable {

    private int carOderDetailId;
    private int oderId;
    private int carId;
    private String pickUpdate;
    private String dropOffDate;
    private byte driver;
    private float total;
    private int qty;
    private CarOrderDTO carOrderDTO;
    private CarsDTO carsDTO;

    public CarOrderDetailDTO() {
    }

    public CarOrderDetailDTO(int carOderDetailId, int oderId, int carId, String pickUpdate, String dropOffDate, byte driver, float total) {
        this.carOderDetailId = carOderDetailId;
        this.oderId = oderId;
        this.carId = carId;
        this.pickUpdate = pickUpdate;
        this.dropOffDate = dropOffDate;
        this.driver = driver;
        this.total = total;
    }

    /**
     * @return the carOderDetailId
     */
    public int getCarOderDetailId() {
        return carOderDetailId;
    }

    /**
     * @param carOderDetailId the carOderDetailId to set
     */
    public void setCarOderDetailId(int carOderDetailId) {
        this.carOderDetailId = carOderDetailId;
    }

    /**
     * @return the oderId
     */
    public int getOderId() {
        return oderId;
    }

    /**
     * @param oderId the oderId to set
     */
    public void setOderId(int oderId) {
        this.oderId = oderId;
    }

    /**
     * @return the carId
     */
    public int getCarId() {
        return carId;
    }

    /**
     * @param carId the carId to set
     */
    public void setCarId(int carId) {
        this.carId = carId;
    }

    /**
     * @return the pickUpdate
     */
    public String getPickUpdate() {
        return pickUpdate;
    }

    /**
     * @param pickUpdate the pickUpdate to set
     */
    public void setPickUpdate(String pickUpdate) {
        this.pickUpdate = pickUpdate;
    }

    /**
     * @return the dropOffDate
     */
    public String getDropOffDate() {
        return dropOffDate;
    }

    /**
     * @param dropOffDate the dropOffDate to set
     */
    public void setDropOffDate(String dropOffDate) {
        this.dropOffDate = dropOffDate;
    }

    /**
     * @return the driver
     */
    public byte getDriver() {
        return driver;
    }

    /**
     * @param driver the driver to set
     */
    public void setDriver(byte driver) {
        this.driver = driver;
    }

    /**
     * @return the total
     */
    public float getTotal() {
        return total;
    }

    /**
     * @param total the total to set
     */
    public void setTotal(float total) {
        this.total = total;
    }

    /**
     * @return the qty
     */
    public int getQty() {
        return qty;
    }

    /**
     * @param qty the qty to set
     */
    public void setQty(int qty) {
        this.qty = qty;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        CarOrderDetailDTO other = (CarOrderDetailDTO) obj;
        if (carId == 0) {
            if (other.carId != 0) {
                return false;
            }
        } else if (carId != other.carId) {

            return false;
        }
        return true;
    }

    /**
     * @return the carOrderDTO
     */
    public CarOrderDTO getCarOrderDTO() {
        return carOrderDTO;
    }

    /**
     * @param carOrderDTO the carOrderDTO to set
     */
    public void setCarOrderDTO(CarOrderDTO carOrderDTO) {
        this.carOrderDTO = carOrderDTO;
    }

    /**
     * @return the customerDTO
     */
    public CarsDTO getCarsDTO() {
        return carsDTO;
    }

    /**
     * @param customerDTO the customerDTO to set
     */
    public void setCarsDTO(CarsDTO carsDTO) {
        this.carsDTO = carsDTO;
    }
}
